Package edu.uky.ai.lp.logic
Class Conjunction
java.lang.Object
edu.uky.ai.lp.logic.BooleanExpression
edu.uky.ai.lp.logic.NAryBooleanExpression
edu.uky.ai.lp.logic.Conjunction
- All Implemented Interfaces:
Expression,Formula
public class Conjunction extends NAryBooleanExpression
Represents an expression with 1 or more conjuncts which must all be true.
- Author:
- Stephen G. Ware
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Conjunction(Expression... conjuncts)Constructs a new conjunction with the given arguments. -
Method Summary
Modifier and Type Method Description Conjunctionsubstitute(Unifier unifier)Return a version of this formula with its variables replaced with the values assigned to them by a unifier.java.lang.StringtoString()Methods inherited from class edu.uky.ai.lp.logic.BooleanExpression
equals, hashCode, substituteArguments, toString, unify
-
Constructor Details
-
Conjunction
Constructs a new conjunction with the given arguments.- Parameters:
conjuncts- the conjuncts
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
substitute
Description copied from interface:FormulaReturn a version of this formula with its variables replaced with the values assigned to them by a unifier.- Parameters:
unifier- the unifier- Returns:
- the formula with variables replaced
-